package com.cdcas;

import java.util.ArrayList;
import java.util.List;

public class PersonTest {
    public static void main(String[] args) {
        Persion p = new Persion("a","男",180);
        Persion p1 = new Persion("b","男",170);
        Persion p3 = new Persion("c","女",165);
        List<Persion> list = new ArrayList<>();
        list.add(p);
        list.add(p1);
        list.add(p3);
        for (Persion tmp:list) {
            System.out.println(tmp);
        }
    }
}
